<%@ page language="java" contentType="text/html; charset=UTF-8"
    pageEncoding="UTF-8"%>
<%
	request.setCharacterEncoding("UTF-8");
%>
<%
	String reserveId = (String)request.getAttribute("id");
	String memberId = (String)request.getAttribute("memberId");
	String userId = (String)request.getAttribute("userId");
	String userName = (String)request.getAttribute("userName");
	String bookTitle = (String)request.getAttribute("bookTitle");
	String mailText = (String)request.getParameter("mailText");
	String mailTitle = "☆★☆★☆★☆★☆★☆★【JA10図書管理システム】書籍予約のご案内☆★☆★☆★☆★☆★☆★";
	String reserveDate=(String)request.getAttribute("reserveDate");

	String rentalPlanDate =(String)request.getAttribute("rentalPlanDate");

	if(mailText==null||mailText=="")
	{
		 mailText = "　　" + userName + "様、いつもご利用いただきありがとうございます。\n\n　["
						+ bookTitle +
						"]につきまして、予約を受付いたしました。\n\n\n\n\n　☆★☆★☆★☆★☆★☆★☆★☆★☆★☆★☆★☆★\n\n　　　　　　　【JA10図書管理システム】\n\n　☆★☆★☆★☆★☆★☆★☆★☆★☆★☆★☆★☆★";
	}
	if(userId == null || userId.length() == 0) {
		userId = "空";
	}
	if(userName == null || userName.length() == 0) {
		userName = "空";
	}
	if(bookTitle == null || bookTitle.length() == 0) {
		bookTitle = "空";
	}
%>
<jsp:include page="/share/layout.jsp" flush="true">
    <jsp:param name="title" value="予約メール編集"/>
    <jsp:param name="css" value="member.css"/>
    <jsp:param name="content">
        <jsp:attribute name="value">
<!-- contents start -->
	<form action="/Books/member/MailCheckServlet">
		<table class="form_table">
			<tr>
				<th>To（ユーザID）</th>
				<td><%= userId %><input type="hidden" name="userId" value="<%= userId %>"/></td>
			</tr>
			<tr>
				<th>件　名</th>
				<td><%= mailTitle %><input type="hidden" size="92" name="mailTitle" value="<%= mailTitle %>"  /></td>
			</tr>
			<tr>
				<td colspan="2" align="left">
					<textarea name="mailText"  cols="105" rows="18" ><%= mailText %>
					</textarea>
				</td>
			</tr>
		</table>
			<div id="button">
				<input type="hidden" name="memberId" value="<%= memberId %>"/>
				<input type="hidden" name="id" value="<%= reserveId %>" />
			    <input class="button" type="submit" value="確認" />
			    <input type="hidden" name="type" value="reserve">
			 	<input type="button" value="戻る" class="button" style="cursor:pointer" onClick="history.back(); return false;">
			 </div>
	</form>



<!-- contents end -->
        </jsp:attribute>
    </jsp:param>
</jsp:include>

